home *** CD-ROM | disk | FTP | other *** search
/ Softwarová Záchrana 3 / Softwarova-zachrana-3.bin / Xteq X-Setup / xqdcXSP-Setup-EN.exe / {app} / plugins / XQ Saved Webpages Linked.xpl < prev    next >
Text File  |  2003-11-19  |  2KB  |  45 lines

  1. "FILE"="Xteq Systems X-Setup Plugin 6.0"
  2. "TYPE"="6"
  3. "COUNT"="1"
  4. "UIPATH 1"="System\File System\Windows 9x/ME Options\Misc"
  5. "UIPATH 2"="System\File System\Windows NT/2K/XP Options"
  6. "NAME"="Saved Webpages Folder Linking"
  7. "VERSION"="1.12"
  8. "LANGUAGE"="VBScript"
  9. "TEXT 1"="Link saved webpages with accompanying folder"
  10. "DESCRIPTION 1"="When a webpage is saved with other elements (such as graphics, stylesheets, scripts etc.), an HTML file along with a separate folder are created on the user's system. By default, Windows connects the folder with the HTML file. Hence, if either the folder or the HTML file is deleted separately, the other element is deleted also."
  11. "DESCRIPTION 2"="To avoid the deletion of the connected element, deselect the option."
  12. "AUTHOR"="Ojatex@aol.com"
  13. "CONTACTURL"="http://www.xteq.com"
  14. "COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
  15. "COMMENT 1"="Thanks to CptSiskoX for the suggested plugin."
  16. "COMMENT 2"="Rescued and updated by Neil Turner."
  17. "COMMENT 3"="Forgot to Save a Webpage? Check the TIF."
  18.  
  19. sP="HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\NoFileFolderConnection" 'bnry
  20.  
  21. Sub Plugin_Initialize 
  22.  i=RegReadValue(sP)
  23.  if i="00000000" OR IsEmpty(i) then
  24.   Call SetUIElement(1,true)
  25.  end if
  26. End Sub
  27.  
  28. Sub Plugin_Apply(ElementIndex,ElementSubIndex)
  29.  b=GetUIElement(1)
  30.  if b=false then
  31.   Call RegWriteValue(sP,"01000000",3)
  32.  else
  33.   i=RegReadValue(sP)
  34.   if IsEmpty(i)=false then
  35.    Call RegDeleteValue(sP)
  36.   end if
  37.  end if
  38.  
  39.  Call IndicateSettingChange()
  40. End Sub
  41.  
  42. Sub Plugin_Terminate 
  43. End Sub
  44.  
  45.